ACLOCAL_AMFLAGS = -I m4
SUBDIRS = include @ZLIBDIR@ src @EXAMPLESDIR@ test
EXTRA_DIST = docs/manual.html docs/manual.rst docs/extension_protocol.rst \
docs/extension_protocol.html docs/udp_tracker_protocol.rst \
docs/projects.rst docs/projects.html \
docs/python_binding.rst docs/python_binding.html \
docs/arctic_thumb.png \
docs/bitbuddy_thumb.jpg \
docs/bitscast_thumb.png \
docs/bitslug_thumb.png \
docs/btg_thumb.jpg \
docs/electric_sheep_thumb.jpg \
docs/moopolice_thumb.gif \
docs/qbittorrent_thumb.jpg \
docs/ziptorrent_thumb.gif \
docs/udp_tracker_protocol.html docs/client_test.rst docs/client_test.html \
docs/unicode_support.png docs/client_test.png docs/style.css Jamfile project-root.jam \
m4/ac_cxx_namespaces.m4 m4/acx_pthread.m4 m4/ax_boost_date-time.m4 \
m4/ax_boost_filesystem.m4 m4/ax_boost_thread.m4 src/file_win.cpp libtorrent.pc \
bindings/README.txt \
bindings/python/Jamfile \
bindings/python/client.py \
bindings/python/simple_client.py \
bindings/python/src/alert.cpp \
bindings/python/src/big_number.cpp \
bindings/python/src/converters.cpp \
bindings/python/src/datetime.cpp \
bindings/python/src/docstrings.cpp \
bindings/python/src/entry.cpp \
bindings/python/src/extensions.cpp \
bindings/python/src/filesystem.cpp \
bindings/python/src/fingerprint.cpp \
bindings/python/src/gil.hpp \
bindings/python/src/module.cpp \
bindings/python/src/optional.hpp \
bindings/python/src/peer_info.cpp \
bindings/python/src/peer_plugin.cpp \
bindings/python/src/session.cpp \
bindings/python/src/session_settings.cpp \
bindings/python/src/torrent.cpp \
bindings/python/src/torrent_handle.cpp \
bindings/python/src/torrent_info.cpp \
bindings/python/src/torrent_status.cpp \
bindings/python/src/utility.cpp \
bindings/python/src/version.cpp



pkginclude_HEADER = \
debian/changelog \
debian/compat \
debian/control \
debian/copyright \
debian/files \
debian/libtorrent0-dev.dirs \
debian/libtorrent0-dev.docs \
debian/libtorrent0-dev.install \
debian/libtorrent0.dirs \
debian/libtorrent0.docs \
debian/libtorrent0.install \
debian/rules


pkgconfigdir   = $(libdir)/pkgconfig
pkgconfig_DATA = libtorrent.pc

check: test
	test/test_hasher \
	&& test/test_bencoding \
	&& test/test_ip_filter \
	&& test/test_piece_picker \
	&& test/test_storage \
	&& test/test_buffer \
	&& test/test_allocate_resources \
	&& echo && echo && echo "  **** all tests passed ****" && echo && echo

deb:
	dpkg-buildpackage -rfakeroot -us -uc
